package com.tdkj.service.information.impl;

import java.util.LinkedHashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tdkj.dao.information.IBeanInfoCommentDao;
import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.information.BeanBaseInfo;
import com.tdkj.model.information.BeanInfoComment;
import com.tdkj.service.BaseService;
import com.tdkj.service.information.IBeanInfoCommentService;
@Component("infoComment")
public class BeanInfoCommentImpl extends BaseService implements IBeanInfoCommentService{
	private IBeanInfoCommentDao beanInfoCommentDao;

	public IBeanInfoCommentDao getBeanInfoCommentDao() {
		return beanInfoCommentDao;
	}

	@Resource
	public void setBeanInfoCommentDao(IBeanInfoCommentDao beanInfoCommentDao) {
		this.beanInfoCommentDao = beanInfoCommentDao;
	}

	@Override
	public List<BeanInfoComment> setStatus(Long id) {
		// TODO Auto-generated method stub
		BeanInfoComment bean = beanInfoCommentDao.findById(id, BeanInfoComment.class);
		bean.setStatus("已审核");
		beanInfoCommentDao.merge(bean);
		return beanInfoCommentDao.findAll(BeanInfoComment.class);
	}


	
}
